function [discount,beca,stipend] = u37_2012(math,lang,demrecode,his,sci)
%% Universidad Catolica de Temuco
lm=(math+lang)/2;
beca=zeros(size(lm,1),1);
stipend=zeros(size(lm,1),1);

%Becas de Excelencia Acad'emica UC Temuco
discount=0.5*(lm>=700)+0.3*(lm>=750);

%Beca Monse;or Jorge Hourton
auxdiscount=((math==850) + (lang==850) + (his==850) + (sci==850))>0;
discount=max(discount,auxdiscount);

%BVP
if demrecode==37046 || demrecode==37024 || demrecode==37045 || demrecode==37022 || demrecode==37027 || demrecode==37048 || demrecode==37023 || demrecode==37028 || demrecode==37047 || demrecode==37026 || demrecode==37029
    [auxdiscount,stipend]=bvp(lm);
    discount=max(discount,auxdiscount);
end

end
